/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

/**
 * This class acts as data transfer abstraction for payment object attributes. It encapsulates address attributes.
 * This object is transferred back and forth amongst various layers.
 * @author tejinder
 * @see  DTO
 */
public class Payment {

    private String cardNo;
    private String type;
    private double amount;

    /**
     * default constructor
     */
    public Payment() {
        cardNo = "";
        type = "";
        amount = 0.00;
    }

    /**
     * parameterized constructor
     * @param cardNo a string for card number
     * @param type a string for type
     * @param amount double 
     */
    public Payment(String cardNo, String type, double amount) {
        this.cardNo = cardNo;
        this.type = type;
        this.amount = amount;
    }

    /**
     * gets card number
     * @return String
     */
    public String getCardNo() {
        return cardNo;
    }

    /**
     * gets type
     * @return String
     */
    public String getType() {
        return type;
    }

    /**
     * gets amount
     * @return double
     */
    public double getAmount() {
        return amount;
    }

    /**
     * sets card number
     * @param cardNo the cardNo to set
     */
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    /**
     * sets type
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * sets amount
     * @param amount the amount to set
     */
    public void setAmount(double amount) {
        this.amount = amount;
    }
}
